<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSpiderLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('spider_log', function (Blueprint $table) {
            $table->increments('spider_log_id')->comment('主键');
            $table->integer('spider_id')->comment('爬虫ID');
            $table->string('spider_name', 20)->commnet('爬虫名称');
            $table->integer('content_id')->comment('内容ID');
            $table->timestamp('created_at')->comment('创建时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('spider_log');
    }
}
